package com.youlai.boot.factory.model.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableName;
import com.youlai.boot.common.base.BaseEntity;

/**
 * 报工工序明细实体对象
 *
 * @author youlaitech
 * @since 2025-10-16 15:34
 */
@Getter
@Setter
@TableName("work_order_process")
public class WorkOrderProcess extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 报工单ID
     */
    private Long workReportId;
    /**
     * 该工序该次报工数量
     */
    private Integer workReportQuantity;
    /**
     * 工序ID
     */
    private Long processId;
    /**
     * 创建人
     */
    private String createBy;
    /**
     * 更新人
     */
    private String updateBy;

    @Schema(description = "报工时的工序单价")
    @NotNull(message = "报工时的工序单价不能为空")
    private BigDecimal unitPrice;
}
